<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/headMain.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
	<script type="text/javascript">
		function _submit(){
			$.post("{base}/role_saveOrUpdateRole", 
				$('#formRole').serialize(), 
				function(response) {
						alert(response.msg);
						$("#_roleGrid").trigger("reloadGrid"); // 刷新表格
						$('#_addOrUpdateRole').dialog('close');
			}, "json");
		}
		function _fanhui(){
			$("#_addOrUpdateRole").dialog("close");
		}
	</script>
	<form id="formRole"> 
					<input type="hidden" name="id"	id="_update_id"	class="required" minlength="2"/><br>
		角色名称：	<input type="text" name="rolename"	id="_update_rolename"	class="required" minlength="2"/><br>
		描述：		<input type="text" name="description"	id="_update_description"	class="required" minlength="2"/><br>
					<input  type="button" value="提交" onclick="_submit();"/>
					<input  type="reset" value="重置" />
					<input  type="button" value="返回" onclick="_fanhui();"/>
	</form>